<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    let uname = prompt('请输入你的用户名：')
    let passwd = +prompt('请输入你的密码：')
    if (passwd !== 123456 || uname !== 'gaga') {
      alert('登录失败')
    } else {
      alert('登录成功')
    }
  </script>
</body>

</html>